import request from '@/utils/request'

export function pageStudents(params) {
  return request({
    url: '/api/student/page-students',
    method: 'get',
    params: params
  })
}

export function addStudent(data) {
  return request({
    url: '/api/student/add-student',
    method: 'post',
    data
  })
}

export function updateStudent(data) {
  return request({
    url: '/api/student/update-student',
    method: 'post',
    data
  })
}

export function deleteStudent(id) {
  return request({
    url: '/api/student/delete-student/' + id,
    method: 'delete'
  })
}
